2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #import "AIStatusController.h"
18 #import "DCGaimNovellJoinChatViewController.h"
19 #import "ESGaimNovellAccount.h"
20 #import "ESGaimNovellAccountViewController.h"
21 #import "ESNovellService.h"
23 @implementation ESNovellService
26 - (Class)accountClass{
27 return([ESGaimNovellAccount class]);
30 - (AIAccountViewController *)accountViewController{
31 return([ESGaimNovellAccountViewController accountViewController]);
34 - (DCJoinChatViewController *)joinChatView{
35 return([DCGaimNovellJoinChatViewController joinChatView]);
39 - (NSString *)serviceCodeUniqueID{
40 return(@"libgaim-GroupWise");
42 - (NSString *)serviceID{
45 - (NSString *)serviceClass{
48 - (NSString *)shortDescription{
51 - (NSString *)longDescription{
52 return(@"Novell GroupWise");
54 - (NSCharacterSet *)allowedCharacters{
55 return([NSCharacterSet characterSetWithCharactersInString:@"+abcdefghijklmnopqrstuvwxyz0123456789@-._ "]);
57 - (NSCharacterSet *)ignoredCharacters{
58 return([NSCharacterSet characterSetWithCharactersInString:@""]);
63 - (BOOL)caseSensitive{
66 - (AIServiceImportance)serviceImportance{
67 return(AIServiceSecondary);
70 - (void)registerStatuses{
71 [[adium statusController] registerStatus:STATUS_NAME_AVAILABLE
72 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AVAILABLE]
73 ofType:AIAvailableStatusType
76 [[adium statusController] registerStatus:STATUS_NAME_AWAY
77 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AWAY]
78 ofType:AIAwayStatusType
81 [[adium statusController] registerStatus:STATUS_NAME_BUSY
82 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_BUSY]
83 ofType:AIAwayStatusType
86 [[adium statusController] registerStatus:STATUS_NAME_INVISIBLE
87 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_INVISIBLE]
88 ofType:AIInvisibleStatusType
91 m = g_list_append(m, _("Available"));
92 m = g_list_append(m, _("Away"));
93 m = g_list_append(m, _("Busy"));
94 m = g_list_append(m, _("Appear Offline"));
95 m = g_list_append(m, GAIM_AWAY_CUSTOM);